using System;
using System.Collections.Generic;

namespace ClassEntities
{
    [Serializable]
    public class tblCauHoiThi
    {
        private int stt;
        private int idDeThi;
        private int idMH;
        private int sodiem;
        private string dsLoaiCauHoi;
        private string img;
        private string media;
        private string noidung;
        private string cauTraLoi;
        private int idNHCH;
        private List<tblDapAnThi> listdapan;

        public tblCauHoiThi()
        { }
        public tblCauHoiThi(int stt, int idDeThi, int idMH, int sodiem, string dsLoaiCauHoi, string img, string media, string noidung, string cauTraLoi, int idNHCH, List<tblDapAnThi> listdapan)
        {
            this.stt = stt;
            this.idDeThi = idDeThi;
            this.idMH = idMH;
            this.sodiem = sodiem;
            this.dsLoaiCauHoi = dsLoaiCauHoi;
            this.img = img;
            this.media = media;
            this.noidung = noidung;
            this.cauTraLoi = cauTraLoi;
            this.idNHCH = idNHCH;
            this.listdapan = listdapan;
        }
        public int Stt
        {
            get { return this.stt; }
            set
            {
                if (value == null)
                    throw new Exception("stt not allow nullvalue.");
                this.stt = value;
            }
        }
        public int IdDeThi
        {
            get { return this.idDeThi; }
            set { this.idDeThi = value; }
        }
        public int IdMH
        {
            get { return this.idMH; }
            set { this.idMH = value; }
        }
        public int Sodiem
        {
            get { return this.sodiem; }
            set { this.sodiem = value; }
        }
        public string DsLoaiCauHoi
        {
            get { return this.dsLoaiCauHoi; }
            set { this.dsLoaiCauHoi = value; }
        }
        public string Img
        {
            get { return this.img; }
            set { this.img = value; }
        }
        public string Media
        {
            get { return this.media; }
            set { this.media = value; }
        }
        public string Noidung
        {
            get { return this.noidung; }
            set { this.noidung = value; }
        }
        public string CauTraLoi
        {
            get { return this.cauTraLoi; }
            set { this.cauTraLoi = value; }
        }
        public int IdNHCH
        {
            get { return this.idNHCH; }
            set { this.idNHCH = value; }
        }
        public List<tblDapAnThi> Listdapan
        {
            get { return listdapan; }
            set { listdapan = value; }
        }
        public override string ToString()
        {
            return this.stt + "; " + this.idDeThi + "; " + this.idMH + "; " + this.sodiem + "; " + this.dsLoaiCauHoi + "; " + this.img + "; " + this.media + "; " + this.noidung + "; " + this.cauTraLoi + "; " + this.idNHCH + "; ";
        }
        public override bool Equals(Object obj)
        {
            tblCauHoiThi me = (tblCauHoiThi)obj;
            bool ret = this.Stt.Equals(me.Stt);
            return ret;
        }
        public override int GetHashCode()
        {
            return this.Stt.GetHashCode();
        }

    }
}